Warning: file_put_contents(aCache/aDaily/post/database_info/--): Failed to open stream: No space left on device in /var/www/tg-me/post.php on line 50 Базы данных (Data Base) | Telegram Webview: database_info/1467 -
is_active VARCHAR(5) -- значения 'true' или 'false'
На первый взгляд — ерунда. На практике: – нет валидации: можно вставить 'tru', 'yes', '0', – медленнее сравнение, чем у BOOLEAN, – больше места в хранилище, – сложно агрегировать и строить аналитику.
🔧Как надо:
is_active BOOLEAN DEFAULT true
– Экономия места (1 байт против 5 и больше) – Проверка через WHERE is_active – Простой COUNT(*) FILTER (WHERE is_active) для отчётов – Автоматическая поддержка в ORM и UI-форматах
📌 Даже если тебе нужно больше состояний — используй ENUM, а не строку.
💡 Чем проще тип — тем меньше шансов на баг. Сохрани, если в коде встречал такое — и переделай с чистой совестью.
is_active VARCHAR(5) -- значения 'true' или 'false'
На первый взгляд — ерунда. На практике: – нет валидации: можно вставить 'tru', 'yes', '0', – медленнее сравнение, чем у BOOLEAN, – больше места в хранилище, – сложно агрегировать и строить аналитику.
🔧Как надо:
is_active BOOLEAN DEFAULT true
– Экономия места (1 байт против 5 и больше) – Проверка через WHERE is_active – Простой COUNT(*) FILTER (WHERE is_active) для отчётов – Автоматическая поддержка в ORM и UI-форматах
📌 Даже если тебе нужно больше состояний — используй ENUM, а не строку.
💡 Чем проще тип — тем меньше шансов на баг. Сохрани, если в коде встречал такое — и переделай с чистой совестью.
In many cases, the content resembled that of the marketplaces found on the dark web, a group of hidden websites that are popular among hackers and accessed using specific anonymising software.“We have recently been witnessing a 100 per cent-plus rise in Telegram usage by cybercriminals,” said Tal Samra, cyber threat analyst at Cyberint.The rise in nefarious activity comes as users flocked to the encrypted chat app earlier this year after changes to the privacy policy of Facebook-owned rival WhatsApp prompted many to seek out alternatives.
That strategy is the acquisition of a value-priced company by a growth company. Using the growth company's higher-priced stock for the acquisition can produce outsized revenue and earnings growth. Even better is the use of cash, particularly in a growth period when financial aggressiveness is accepted and even positively viewed.he key public rationale behind this strategy is synergy - the 1+1=3 view. In many cases, synergy does occur and is valuable. However, in other cases, particularly as the strategy gains popularity, it doesn't. Joining two different organizations, workforces and cultures is a challenge. Simply putting two separate organizations together necessarily creates disruptions and conflicts that can undermine both operations.